package com.gitee.huxing.clone;

/**
 * @Description: 关于深浅拷贝
 * @ProjectName: AlgorithmicPactice
 * @Package: com.gitee.huxing.clone
 * @ClassName: ObjectCopy
 * @Author: huxing
 * @DateTime: 2022-04-11 4:55 PM
 */
public class ObjectCopy {

    public static void main(String[] args) throws CloneNotSupportedException{
        Teacher teacher = new Teacher("huxing", 28);
        Teacher other = (Teacher) teacher.clone();
        System.out.println(teacher);
        System.out.println(other);
    }
}
